/*
 * cmucam.h
 *
 *  Created on: Sep 30, 2014
 *      Author: amorim
 */

#ifndef CMUCAM_H_
#define CMUCAM_H_


#include <stdlib.h>
#include <stdio.h>
#include <string>
#include "serial.h"

using namespace std;

class CMUCam{


	string device;
	SerialConnection connection;
	int fd;

public:

	CMUCam();
	void connect();
	void set_monochrome();
	void set_rgb();
	int snapshot(string filename); // returns the size (in bytes)
	void close();
};

#endif /* CMUCAM_H_ */
